package demo.iterator;


import java.io.File;

/**
 * @author : feixiang.li
 * @since : 2025-09-17 13:49
 */
public class Main {
    public static void main(String[] args) {
        User user = new User("张三", 1);
        for (String s : user) {
            System.out.println(s);
        }
        UserFile userFile = new UserFile(new File("/Users/luckincoffee/Desktop/code/java-test/demo1/src/main/java/com/lkcoffee/demo/iterator/user.txt"));
        for (User user1 : userFile) {
            System.out.println(user1);
        }
    }
}
